package com.atguigu.practices.vo.req;

import com.atguigu.practices.annotation.Gender;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Schema(description = "员工修改需要提交的数据")
@Data
public class EmployeeUpdateVO {
    @Schema(description = "员工id")
    @NotNull
    private Integer id;

    // 把下方的校验注解都去掉了，真的好吗？update就不校验了？
    private String name;
    private Integer age;
    private String email;
    private String gender;
    private String address;
    private BigDecimal salary;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date birth;
}
